

//不会写
class Date{
    public int year = 2000;
    public int month = 1;
    public int day = 1;
    Date(){

    }

    Date(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }
    int interval(Date D){
        int ret1 =day - D.day;
        if ((D.year %400 ==0) ||(D.year%4==0)&&(D.year%100!=0)){

        }
        return
    }


}
public class Haha {
    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date(2021, 10, 1);
        System.out.println(d1);
        System.out.println(d2);
        System.out.println(Math.abs(d1.interval(d2)));

    }
}
